package com.government.area.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.government.common.annotation.Excel;
import com.government.common.core.domain.BaseEntity;
import com.government.common.core.domain.entity.SysMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 地区对象 t_area
 * 
 * @author system
 * @date 2023-09-14
 */
@TableName("t_area")
@Data
public class Area extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO )
    private Long id;

    /** 上级地区 */
    @Excel(name = "上级地区")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** $column.columnComment */
    @TableField(exist = false)
    private Long grade;

    /** $column.columnComment */
    private Long sons;

    /** $column.columnComment */
    private Integer type;

    /** $column.columnComment */
    private String admin;

    /** $column.columnComment */
    private Long list;

    /** $column.columnComment */
    private Long listorder;

    /** $column.columnComment */
    private String passwd;

    /** $column.columnComment */
    private String logo;

    /** $column.columnComment */
    private String descrip;

    /** $column.columnComment */
    private String style;

    /** $column.columnComment */
    private String template;

    /** $column.columnComment */
    private String jumpurl;

    /** $column.columnComment */
    private Long maxperpage;

    /** $column.columnComment */
    private String metakeywords;

    /** $column.columnComment */
    private String metadescription;

    /** $column.columnComment */
    private Integer allowcomment;

    /** $column.columnComment */
    private String allowpost;

    /** $column.columnComment */
    private String allowviewtitle;

    /** $column.columnComment */
    private String allowviewcontent;

    /** $column.columnComment */
    private String allowdownload;

    /** $column.columnComment */
    private Integer forbidshow;

    /** $column.columnComment */
    private String config;

    /** 0未激活 1激活 */
    private Long status;

    /** 子菜单 */
    @TableField(exist = false)
    private List<SysMenu> children = new ArrayList<SysMenu>();

}
